﻿<%@ Page Title="Country Information Page" Language="C#" MasterPageFile="~/Home.Master" AutoEventWireup="true" CodeBehind="frmLoc.aspx.cs" Inherits="DomesticPestProject.frmLoc"%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder6" runat="server">
         <table style="width: 180px">
         <tr>
         <td>
         &nbsp;&nbsp;<asp:Button ID="btnCommodity" runat="server" Text="Commodity" 
                  Width="140px" Font-Bold="True" ForeColor="Black" onclick="btnCommodity_Click" 
                  />
         </td>
         </tr>
         <tr><td></td></tr>
         <tr>
         <td>
         
         &nbsp;&nbsp;<asp:Button ID="btnInformation" runat="server" Text="Information" 
                 Width="140px" Font-Bold="True" ForeColor="#000066" onclick="btnInformation_Click" 
                 />
         </td>
         </tr>
         <tr><td></td></tr>
         <tr>
         <td>
         &nbsp;&nbsp;<asp:Button ID="btnTransaction" runat="server" Text="Transaction" 
                 Width="139px" Font-Bold="True" ForeColor="#000066" 
                 onclick="btnTransaction_Click" />
         
         </td>
         </tr>
         <tr><td></td></tr>
         <tr>
         <td>
          &nbsp;&nbsp;<asp:Button ID="btnPest" runat="server" Text="Pest" Width="140px" 
                 Font-Bold="True" ForeColor="#000066" onclick="btnPest_Click" 
                 />
         
         </td>
         </tr>
         <tr><td></td></tr>
         <tr>
         <td>
         &nbsp;&nbsp;<asp:Button ID="btnLctn" runat="server" Text="Location" Width="138px" 
                 Font-Bold="True" ForeColor="#000066" onclick="btnLctn_Click" />
                
         </td>
         </tr>
         <tr><td></td></tr>
         <tr>
         <td>
         
         &nbsp;&nbsp;<asp:Button ID="btnPsDsrbtn" runat="server" Text="Pest Distribution" 
                 Width="138px" Font-Bold="True" ForeColor="#000066" 
                 onclick="btnPsDsrbtn_Click" />
         </td>
         
         </tr>
         <tr><td></td></tr>
         <tr>
         <td>
         
         &nbsp;&nbsp;<asp:Button ID="btnMain" runat="server" Text="Main Page" 
                 Width="138px" Font-Bold="True" ForeColor="#000066" onclick="btnMain_Click" 
                  />
         </td>
         
         </tr>
         </table>
         </asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="ContentPlaceHolder7" runat="server">
    &nbsp;
    <table>
    <tr>
        <td>
            &nbsp;&nbsp;<asp:Label ID="lblCounCd" runat="server" Text="Country Code :"></asp:Label>
        </td>
        <td>
             &nbsp;&nbsp;<asp:TextBox ID="txtCounCd" runat="server" Height="16px" 
                 Width="150px" style="margin-left: 40px; margin-top: 0px;"></asp:TextBox>
        
             &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;<asp:DropDownList ID="ddlCountCd" 
                 runat="server" Height="17px" 
                 Width="156px" AutoPostBack="True" DataSourceID="SqlDataSource1" 
                 DataTextField="Country_Code" DataValueField="Country_Code" 
                 onselectedindexchanged="ddlCountCd_SelectedIndexChanged" Visible="False" 
                 >
             </asp:DropDownList>

             <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                 ConnectionString="<%$ ConnectionStrings:DomesticPestDBConnectionString %>" 
                 SelectCommand="SELECT [Country_Code] FROM [Country]"></asp:SqlDataSource>

        </td>
    </tr>
    
    </table>
    
    
    <asp:Panel ID="pnl1" runat="server">
    
<table>
    
    <tr>
        <td>
            &nbsp;&nbsp;<asp:Label ID="lblGeoRgn" runat="server" Text="Geographical Region :"></asp:Label>
        </td>
        <td>
             &nbsp;&nbsp;<asp:DropDownList ID="ddlGeoRgn" runat="server" Height="16px" 
                 Width="154px" AutoPostBack="True" 
                 >
             </asp:DropDownList>

        </td>

    </tr>
    
   
    <tr>
        <td>
            &nbsp;&nbsp;<asp:Label ID="lblCoun" runat="server" Text="Country :"></asp:Label>
        </td>
        <td>
             &nbsp;&nbsp;<asp:DropDownList ID="ddlCoun" runat="server" Height="16px" 
                 Width="154px" AutoPostBack="True">
             </asp:DropDownList>
        </td>

    </tr>
    <tr>
        <td>
           &nbsp;&nbsp;<asp:Label ID="lblStat" runat="server" Text="State/Province :"></asp:Label>
        </td>
        <td>
            &nbsp;&nbsp;<asp:DropDownList ID="ddlStat" runat="server" Height="16px" 
                Width="154px" AutoPostBack="True">
             </asp:DropDownList>
        </td>

    </tr>
    <tr>
        <td>
           &nbsp;&nbsp;<asp:Label ID="lblLoc" runat="server" Text="Location :"></asp:Label>
        </td>
        <td>
            &nbsp;&nbsp;<asp:DropDownList ID="ddlLoc" runat="server" Height="16px" 
                Width="154px" AutoPostBack="True">
             </asp:DropDownList>
        </td>

    </tr>
    <tr>
        <td>
           &nbsp;&nbsp;<asp:Label ID="lblGIS" runat="server" Text="GIS :"></asp:Label>
        </td>
        <td>
            &nbsp;&nbsp;<asp:DropDownList ID="ddlGIS" runat="server" Height="16px" 
                Width="154px" AutoPostBack="True">
             </asp:DropDownList>
        </td>

    </tr>
    <tr>
    <td></td>
    </tr>
   
</table>
</asp:Panel>
<asp:Panel ID="pnlAdd" runat="server" Visible="False">
    
<table>
    
    <tr>
        <td>
            &nbsp;&nbsp;<asp:Label ID="Label2" runat="server" Text="Geographical Region :"></asp:Label>
        </td>
        <td>
             &nbsp;&nbsp;<asp:TextBox ID="txtGeoRgn" runat="server" Height="16px" 
                 Width="149px"></asp:TextBox>
        </td>

    </tr>
    
   
    <tr>
        <td>
            &nbsp;&nbsp;<asp:Label ID="Label3" runat="server" Text="Country :"></asp:Label>
        </td>
        <td>
             &nbsp;&nbsp;<asp:TextBox ID="txtCoun" runat="server" Height="16px" 
                 Width="149px"></asp:TextBox>
        </td>

    </tr>
    <tr>
        <td>
           &nbsp;&nbsp;<asp:Label ID="Label4" runat="server" Text="State/Province :"></asp:Label>
        </td>
        <td>
             &nbsp;&nbsp;<asp:TextBox ID="txtState" runat="server" Height="16px" 
                 Width="149px"></asp:TextBox>
        </td>

    </tr>
    <tr>
        <td>
           &nbsp;&nbsp;<asp:Label ID="Label5" runat="server" Text="Location :"></asp:Label>
        </td>
        <td>
             &nbsp;&nbsp;<asp:TextBox ID="txtLoc" runat="server" Height="16px" 
                 Width="149px"></asp:TextBox>
        </td>

    </tr>
    <tr>
        <td>
           &nbsp;&nbsp;<asp:Label ID="Label6" runat="server" Text="GIS :"></asp:Label>
        </td>
        
        <td>
             &nbsp;&nbsp;<asp:TextBox ID="txtGIS" runat="server" Height="16px" 
                 Width="149px"></asp:TextBox>
        </td>
    </tr>
    <tr>
    <td></td>
    </tr>
   
</table>

</asp:Panel>
<table>
 <tr>
    <td>
        <asp:Button ID="btnAdd" runat="server" Text="Add" Height="27px" 
            onclick="btnAdd_Click" />
    </td>
    <td>
        <asp:Button ID="btnModify" runat="server" Text="Modify" 
            onclick="btnModify_Click" Enabled="False" />
    </td>
    <td>
        <asp:Button ID="btnDelete" runat="server" Text="Delete" 
            onclick="btnDelete_Click" Enabled="False" />
    </td>
    <td>
        <asp:Button ID="btnListing" runat="server" Text="Listing" Enabled="False" />
    </td>
    <td>
        <asp:Button ID="btnSave" runat="server" Text="Save" onclick="btnSave_Click" 
            Enabled="False" />
    </td>
    <td>
        <asp:Button ID="btnCancel" runat="server" Text="Cancel" Enabled="False" 
            onclick="btnCancel_Click" />
    </td>
    <td>
       <asp:Button ID="btnExit" runat="server" Text="Exit" onclick="btnExit_Click" />
    </td>
    </tr>
</table>
<p></p>
    <asp:Panel ID="Panel1" runat="server">
        <asp:GridView ID="gvLoc" runat="server" BackColor="White" BorderColor="White" 
            BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" 
            ForeColor="#003366" GridLines="None" 
            onrowcancelingedit="gvLoc_RowCancelingEdit" onrowediting="gvLoc_RowEditing" 
            onrowupdating="gvLoc_RowUpdating" ShowHeaderWhenEmpty="True" Width="639px" 
            onrowdeleting="gvLoc_RowDeleting">
            <Columns>
                <asp:CommandField HeaderText="Delete" ShowDeleteButton="True" 
                    ShowHeader="True" />
                <asp:CommandField HeaderText="Edit" ShowEditButton="True" ShowHeader="True" />
            </Columns>
            <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
            <HeaderStyle BackColor="#003366" Font-Bold="True" ForeColor="#97CBFF" />
            <PagerStyle BackColor="#B3D9FF" ForeColor="#003366" HorizontalAlign="Right" />
            <RowStyle BackColor="#BFBFFF" ForeColor="#003366" />
            <SelectedRowStyle BackColor="#000066" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#594B9C" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#000066" />
        </asp:GridView>
    </asp:Panel>


</asp:Content>
